<template>
  <el-container>
    <el-main>
      <div class="navMenbers ">
        <el-breadcrumb separator-class="el-icon-arrow-right">
          <span class="currentLocation">当前位置：</span>
          <el-breadcrumb-item :to="{ path: '/score' }">首页</el-breadcrumb-item>
          <el-breadcrumb-item :to="{ path: '/score'}">审核列表</el-breadcrumb-item>
        </el-breadcrumb>
      </div>
      <div class="memberList ">
        <router-view></router-view>
      </div>
    </el-main>
  </el-container>
</template>

<script>
// import api from "@/api.js";
import ScoreApplyList from "./ScoreApplyList";
import AsideNav from "@/components/nav/AsideNav";

export default {
  components: {
    ScoreApplyList,
    AsideNav
  },
  data() {
    return {
      navItem: [
        { index: "/score", title: "所有加扣分记录" },
        { index: "/rank", title: "积分排行榜" },
      ]
    };
  },
  methods: {
    clickFn: function () {
      this.$router.push({ path: "/addMember" });
    },
    handleEdit(index, row) {
      console.log(index, row);
    },
    handleDelete(index, row) {
      console.log(index, row);
    },
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
    submitForm(formName) {
      this.$refs[formName].validate(valid => {
        if (valid) {
          alert("submit!");
        } else {
          console.log("error submit!!");
          return false;
        }
      });
    },
    resetForm(formName) {
      this.$refs[formName].resetFields();
    },
    open2() {
      this.$confirm("此操作将永久除名, 是否继续?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      })
        .then(() => {
          this.$message({
            type: "success",
            message: "除名成功!"
          });
        })
        .catch(() => {
          this.$message({
            type: "info",
            message: "已取消除名"
          });
        });
    }
  }
};
</script>
<style lang="scss" scoped>
.currentLocation {
  float: left;
  margin-left: 3%;
}

.el-main {
  color: #333;
  text-align: center;
  background-color: #f8f9fa;
}

.temporaryImages {
  width: 250px;
  margin-top: 2px;
}

.temporaryImages img {
  width: 120px;
  margin-top: 80px;
}

.navMenbers {
  width: 98%;
  margin: 5px auto;
  padding: 10px 0 10px 0;
  background-color: #ffffff;
}

// .memberList {
//   width: 98%;
//   margin: 5px auto;
//   background-color: #ffffff;
// }
// .memberList .listOperation {
// }

// .memberList .el-table {
//   margin: 15px 15px;
//   margin: 0 auto;
//   text-align: left;
// }

.el-table .el-button {
  width: 60px;
  margin: 0px 6% 0px 3%;
  float: left;
}
.essentialInformation .el-form-item {
  font-weight: bold;
  height: 45px;
  float: left;
  margin-left: 20px;
}

body > .el-container {
  margin-bottom: 25px;
}
footer {
  font-size: 12px;
  text-align: center;
  padding-bottom: 10px;
  padding-top: 10px;
  font-family: "微软雅黑";
  color: #3b3b3b;
}
</style>